package com.project.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 商品表实体类
 */
@Data
@Api(tags = "商品视图")
@TableName(value = "sys_product")
public class ProductBean {

    @ApiModelProperty(value = "编号",hidden = true)
    @TableId(value = "pk_productId")
    private int id;

    @ApiModelProperty(value = "商品编号")
    private String productCode;

    @ApiModelProperty(value = "商品名称")
    private String productName;

    @ApiModelProperty(value = "商品厂家")
    private String productFactory;

    @ApiModelProperty(value = "商品种类")
    private String productType;

    @ApiModelProperty(value = "商品图片")
    private String productPath;

    @ApiModelProperty(value = "建议采购价格")
    private int productBuy;

    @ApiModelProperty(value = "建议销售价格")
    private int productSell;

    @ApiModelProperty(value = "库存")
    private int productNum;

    @ApiModelProperty(value = "销售数量")
    private int productSellNum;

    @TableField(exist = false)
    private SuppliersBean supplier;
    @TableField(exist = false)
    private List<PurchaseProductBean> purchaseInfoList;
    @TableField(exist = false)
    private List<SellProductBean> sellInfoList;

}
